/**
 * Created by hzq16239 on 2016/1/22.
 */

var express = require('express');
var beaconManager = express.Router();
var managerCompanyIntro = require('../controllers/managerCompanyIntro.js');
var managerOrderOperate = require('../controllers/managerOrderOperate.js');
var managerVisitInfo = require('../controllers/managerVisitInfo.js');
var managerVisitorInfo = require('../controllers/managerVisitorInfo.js');

var manager =  require('../controllers/manager.js');

//manager index
beaconManager.get('/',manager.index);

beaconManager.get('/companyIntro',managerCompanyIntro.index);
//beaconManager.get('/companyIntro',managerCompanyIntro.addIntro);

beaconManager.get('/orderOperate',managerOrderOperate.index);

beaconManager.get('/visitInfo',managerVisitInfo.index);

beaconManager.get('/visitorInfo',managerVisitorInfo.index);

beaconManager.post('/image',managerCompanyIntro.uploadImage);

module.exports = beaconManager;